import 'package:flutter/material.dart';
import 'package:flutter_easyrefresh/easy_refresh.dart';
import 'package:flutterhello/pages/notice/widget/act_card.dart';

class TeamAct extends StatelessWidget {
  var activites;
  TeamAct({this.activites});

  var _controller = new EasyRefreshController();
  @override
  Widget build(BuildContext context) {
    return EasyRefresh.custom(
      controller: _controller,
      slivers: <Widget>[
        SliverList(
          delegate: SliverChildBuilderDelegate(
            (context, index) {
              return Padding(
                padding: EdgeInsets.only(
                  left: 20,
                  right: 20,
                ),
                child: Column(
                  children: [
                    SizedBox(
                      height: 10,
                    ),
                    ActiviteCard(
                      info: activites[index],
                    ),
                  ],
                ),
              );
            },
            childCount: activites.length,
          ),
        )
      ],
    );
  }
}
